<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>011-删除属性.html</title>
</head>
<body>
	
</body>
<script>
	function Person(name,age){
		this.name = name;
		this.age = age;
	}
	Person.prototype.showName = function(){
		console.log("I am"+this.name);
	}
	Person.prototype.showAge = function(){
		console.log("I am"+this.age+"years old");
	}
	Person.prototype.LEGS =2;

	var p1 = new Person("chris",22);

	console.log('p1.name',p1.name);
	console.log('delete p1.name',delete p1.name);
	console.log('delete p1.EYES',delete p1.EYES);
	console.log('p1.name',p1.name);
	console.log('delete Person.prototype.LEGS',delete Person.prototype.LEGS);
	console.log('p1.LEGS',p1.LEGS);

	var p2 = new Person('leo',24);
	console.log('p2.LEGS',p2.LEGS);
</script>
</html>